package com.qfjy.service.Impl;
import com.qfjy.entity.User;
import com.qfjy.mapper.UserMapper;
import com.qfjy.service.UserService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User selectUserByWid(int wid) {
        return userMapper.selectUserByWid(wid);
    }
    @Override
    public User selectUserByEmail(String email) {
        return userMapper.selectUserByEmail(email);
    }

    @Override
    public int updateUserWidByEmail(int wid, String email) {
        return userMapper.updateUserWidByEmail(wid,email);
    }

    @Override
    public int updateByPrimaryKeySelective(User record) {
        return userMapper.updateByPrimaryKeySelective(record);
    }
}